// import {ADD,SUB} from '../actions'
// const reducer = (state = { value : 0}, action) => {
//     switch (action.type) {
//         case ADD:
//             return {value : state.value + action.num}
//         case SUB:
//             return {value : state.value - action.num}
//         default:
//             return state
//     }
// }
// export default reducer

import { combineReducers } from 'redux'
import counterReducer from './counter'
const reducer = combineReducers({
    counterReducer : counterReducer
})

export default reducer